package com.client.rule.decision;

import com.shared.rule.TypeDecision;

public class DecisionEditorDialogBoxFactory {

	
	public static DecisionEditorDialogBox createDialogBox(TypeDecision type){
		switch (type) {
		case MESSAGE:
			return new MessageEditorDialogBox();
		case PRODUIT:
			return new ProduitEditorDialogBox();
		default:
			break;
		}
		return new MessageEditorDialogBox();
	}
}
